﻿using System;
using System.Drawing;
using System.Windows.Forms;

namespace zaoxiaoren
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        /// <summary>
        ///
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void button1_Click(object sender, EventArgs e)
        {
            this.pictureBox1.Refresh();

            Pen p = new Pen(Color.Green);
            person_build pb1 = new person_thin(this.pictureBox1.CreateGraphics(), p);
            person_director pd1 = new person_director(pb1);
            pd1.create_person();
        }

        private void button2_Click(object sender, EventArgs e)
        {
            this.pictureBox1.Refresh();

            Pen p = new Pen(Color.Green);
            person_build pb2 = new person_fat(this.pictureBox1.CreateGraphics(), p);
            person_director pd2 = new person_director(pb2);
            pd2.create_person();
        }

        private void Form1_Load(object sender, EventArgs e)
        {

        }
    }
}